package com.caiyouxi.common.bean;

/**
 * 统一返回
 * weichangyong
 *
 * @create 2017-08-31 16:12
 **/
public class ResData <T> {

    private String code;
    private String msg;
    /**
     * 返回数据
     */
    private T data;

    public ResData(){}


    public ResData(String code,String msg,Object data){
       this.code = code;
       this.msg = msg;
       this.data = (T) data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
